package client;

import java.io.Serializable;

import javax.swing.JOptionPane;

/**
 * 
 * Notify for any new complaint
 *
 */
public class ComplaintThread extends Thread implements Serializable{

	public void run()
	{
		while(true){
			
			ObjHandle.sendToServer(this);
			
			int i=(Integer)Main.clie.getResult();
			if(i>0)
				JOptionPane.showMessageDialog(null, "New Complaint !!!");
			try {
				sleep(20000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
